package com.cyl.manager.oms.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.cyl.h5.domain.entity.PmsAppraise;

/**
 * 商品评价表Mapper接口
 *
 * @author zcc
 */
public interface PmsAppraiseMapper extends BaseMapper<PmsAppraise> {
    /**
     * 查询商品评价表列表
     *
     * @param pmsAppraise 商品评价表
     * @return 商品评价表集合
     */
    List<PmsAppraise> selectByEntity(PmsAppraise pmsAppraise);

    /**
     * 批量软删除
     * @param ids
     * @return
    */
    int updateDelFlagByIds(@Param("ids") Long[] ids);


    List<PmsAppraise> goodAppraise(@Param("orderIds")List<Long> orderIds,@Param("labelList")List<String> labelList, @Param("status")Long status);

    List<Map<String, Object>> appraiseCount(@Param("orderIds")List<Long> orderIds);
}
